package logic;

import java.io.Serializable;
import java.sql.Date;

/**
 * a borrow action generate borrow history record
 * an object of this class includs the borrow details
 * @author raz
 */
public class BorrowHistory implements Serializable{
	/**
	 * borrow id
	 */
	int ID;
	/**
	 * borrow date 
	 */
	Date borrowDate;
	/**
	 * return date given when borrow is aproved
	 */
	Date returnDate;
	/**
	 * actual return date
	 */
	Date actualReturnDate;
	/**
	 * this field is filled when the book is returned 
	 * only the librarian can fill this fields
	 */
	String comments;
	/**
	 * book lent catalog number
	 */
	int CatalogNumber;
	
	public int getCatalogNumber(){
		return CatalogNumber;
	}
	public void setCatalogNumber(int CatalogNumber){
		this.CatalogNumber=CatalogNumber;
	}
	public int getID() {
		return ID;
	}
	public void setID(int iD) {
		ID = iD;
	}
	public Date getBorrowDate() {
		return borrowDate;
	}
	public void setBorrowDate(Date borrowDate) {
		this.borrowDate = borrowDate;
	}
	public Date getReturnDate() {
		return returnDate;
	}
	public void setReturnDate(Date returnDate) {
		this.returnDate = returnDate;
	}
	public Date getActualReturnDate() {
		return actualReturnDate;
	}
	public void setActualReturnDate(Date actualReturnDate) {
		this.actualReturnDate = actualReturnDate;
	}
	public String getComments() {
		return comments;
	}
	public void setComments(String comments) {
		this.comments = comments;
	}
	public int extendReturnDate()
	{
		return 0;
	}
}
